<!-- 年检管理|edit:编辑,delete:删除,add:添加-->
<div>
<div class="layui-col-xs6 layui-col-md12">

    <!-- 搜索框 -->
<form class="layui-form" action="" style="margin-top:10px;">
<div class="layui-form-item layui-col-md12 layui-col-xs12">
    <div class="layui-input-inline" id='sel-car'>
        <input type="hidden" name="car_id" id="" class="car_id" value="{$Think.get.number}">
        <input type="text" name="number" placeholder="点击选择车辆" autocomplete="off" class="layui-input number" value="{$Think.get.number}" readonly="readonly">
    </div>
    <div class="layui-input-inline">
        <input type="text" class="layui-input" id="between" name="between" placeholder="点击选择年检时间范围"  value="{$Think.get.between}" readonly="readonly">
    </div>
    <button class="layui-btn layui-btn-normal">
        <span>查询</span>
    </button>
    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
    <!-- 车辆操作 -->
    {if $Think.get.filter}
    <div>
        <div class="layui-btn-group" style="width: 100%;" id='use'>
            <button class="layui-btn layui-btn-sm layui-btn-primary">
                查看可用记录
            </button>
            <!-- <button class="layui-btn layui-btn-sm layui-btn-primary " style="float: right;border-left: 1px solid #c9c9c9;">
                导出数据
            </button> -->
        </div>
    </div>
    {else/}
    <div>
        <div class="layui-btn-group" style="width: 100%;">
            <button class="layui-btn layui-btn-sm layui-btn-primary" id="add" data-btn="add">
                    新增
            </button>
            <button class="layui-btn layui-btn-sm layui-btn-primary delete-multiple" data-btn="delete">
              删除  
            </button>
            <button class="layui-btn layui-btn-sm layui-btn-primary" id='delete' data-btn="delete">     
               查看已删除记录
            </button>
            <!-- <button class="layui-btn layui-btn-sm layui-btn-primary"  style="float: right;border-left: 1px solid #c9c9c9;">
              导出数据
            </button> -->
          </div>
    </div>
    {/if}

    <!-- 表单 -->
    <div class="table_margin_0">
        <table class="layui-hide" id="AS" lay-filter="demo"></table>
    </div>
    <!-- 分页 -->
    <div id="page"></div>
</div>
 <script type="text/html" id="demo">
    <a class="layui-btn layui-btn-xs" lay-event="edit" data-btn="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-btn="delete">删除</a>
 </script> 
 <script type="text/html" id="state">
    {{#  if(d.state == 1 ){ }}
             通过
    {{#  } else { }}
            未通过
    {{#  } }}
  </script>
  <script type="text/html" id="carId">
    {{# if(d.car.number  ){ }}
    <a href="{:url('html/car/car_detail')}?car_id={{d.car_id}}&number={{d.car.number}}" class="layui-table-link">{{ d.car.number }}</a>
     {{# } else { }}
      暂无车牌 
      {{# } }}
</script>
</div>